import request from '@/utils/request'

/**
 *  formdata 请求体
 * @param {*} fd
 * @returns
 */
export const pubArtAPI = (fd) => request.post('/my/article/add', fd)
/**
 *
 * @param {pagenum,pagesize,cate_id,state} obj
 * @returns
 */
export const getArtListAPI = (obj) => request.get('/my/article/list', {
  params: obj
})

export const deleteArtAPI = (id) => request.delete('/my/article/info', { params: { id } })
